package com.ligang;

import com.ligang.domain.Video;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: StoneIsLand
 * @Date: 2022/1/17 22:18
 */

@FeignClient(value = "xdclass-video-service")
public interface VideoService {
    @GetMapping("api/v1/video/findById")
    Video findById(@RequestParam("id") int id);

    @PostMapping("api/v1/video/save")
    Video save(@RequestBody Video video);
}
